import request from '@/utils/request'
const server = '/common/';

const checkLogin = false; //checkLogin是否开启检查是否登录(默认true开启检查)


//获取验证码
export function smsTask (data={}) {
  console.log(data)
  return request({
    url: server+'vcode',
    method: 'post',
    data
  })
}





//获取省份参数：code=province
export function listProvinces (param) {
  return request({
    url: server+'lookup/service/getChildrenByCode',
    method: 'get',
    params: param
  })
}

//消息列表
export function messageList (param) {
  return request({
    url: server+'message/mobile/service/messageList',
    method: 'get',
    params: param
  })
}



//首页轮播
export function listPlay (param) {
  return request({
    url: server+'banner/service/listBanner',
    method: 'get',
    params: param
  })
}


